package com.sskj.hangqing.presenter;

import com.sskj.common.base.HttpData;
import com.sskj.hangqing.ui.fragment.SpecialCoinFragment;
import com.sskj.lib.bean.CoinBean;
import com.sskj.lib.http.CallBackOption;

import java.util.List;


public class SpecialCoinFragmentPresenter extends BasePresenter<SpecialCoinFragment> {

    public void getData() {
        httpService.getProduct(null)
                .execute(new CallBackOption<HttpData<List<CoinBean>>>() {
                }.unLoadBind(mView)
                .execute(httpData-> mView.updateCoin(httpData.getData())));
    }
}
